package com.gc.server.service;

import com.gc.server.entity.ShopEntity;
import com.gc.server.vo.ShopVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;

/**
 * 药店Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Fri Oct 16 18:10:43 CST 2020
 */
public interface ShopService extends BaseService<ShopEntity> {

    /************自动生成**************/
    List<ShopVo> findVo(ShopVo vo);

    ShopVo getVo(Long id);

    int updateVo(ShopVo vo);

    int saveVo(ShopVo vo);

    void downLoad(HttpServletResponse response, List<ShopVo> list);

    /***********BACK***********/


    /***********API***********/

    List<ShopEntity> findByUserId(Long userId);

    List<ShopEntity> findByRouteId(Long routeId);

    void upload(InputStream file);

    void add(Long userId,ShopEntity shopEntity);

    void add(Long userId,List<Long> shopIds);

}
